import request from '@/utils/request'
const moduleApi = '/operation'

// 社群列表
export function getAssociationList(params) {
  return request({
    url: moduleApi + `/marAssociation/list`,
    method: 'get',
    params
  })
}

// 新增社群
export function addAssociation(data) {
  return request({
    url: moduleApi + `/marAssociation/add`,
    method: 'post',
    data
  })
}

// 获取所有点位
export function getAllPositions(params) {
  return request({
    url: 'tissue' + `/company/tissueTree`,
    method: 'get',
    params
  })
}
// 获取微信群列表
export function getGroupChat(params) {
  return request({
    url: moduleApi + `/wxCp/list`,
    method: 'get',
    params
  })
}
// 获取群成员列表
export function getGroupMemberList(params) {
  return request({
    url: moduleApi + `/marAssociation/findGroupMemberList`,
    method: 'get',
    params
  })
}
